package model

import "gorm.io/gorm"

type UserCoupons struct {
	gorm.Model
	Uid           int     `gorm:"type:int(11);not null;comment:用户id"`
	CouponsId     int     `gorm:"type:int(11);not null;comment:优惠卷Id"`
	CouponsName   string  `gorm:"type:varchar(255);not null;comment:优惠卷名称"`
	CouponPrice   float64 `gorm:"type:decimal(10,2);not null;comment:优惠卷可优惠额度"`
	UseMinPrice   float64 `gorm:"type:decimal(10,2);not null;comment:最低可以金额"`
	CouponsStatus int     `gorm:"type:int(11);not null;comment:优惠卷状态 1-已过期，2-未过期，3-已使用"`
}
